Chat container and layout
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--colorNeutralBackground1);
}

/* Messages area */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Input area */
.input-wrapper {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--colorNeutralBackground1);
  border-top: 1px solid var(--colorNeutralStroke1);
  padding: 16px 24px;
}

.input-container {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
}

/* Message styling */
.message {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.message-content {
  line-height: 1.5;
  white-space: pre-wrap;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 4px;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.message-role {
  font-weight: 600;
  font-size: 14px;
}

.bot-tag {
  font-size: 11px;
  color: var(--colorNeutralForeground2);
  background-color: var(--colorNeutralBackground2);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* User message */
.message.user .message-content {
  background-color: var(--colorBrandBackground);
  color: var(--colorNeutralForegroundInverted);
  align-self: flex-end;
}

/* Assistant/bot message */
.message.assistant .message-content {
  background-color: var(--colorNeutralBackground2);
  color: var(--colorNeutralForeground1);
  align-self: flex-start;
}

/* Message actions */
.message-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.action-button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--colorNeutralForeground3);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.action-button:hover {
  background-color: var(--colorNeutralBackground2);
}

.message-content p {
  margin: 0 0 16px 0;
}

.message-content p:last-child {
  margin-bottom: 0;
}

/* System message / action */
.message.system {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.system-message {
  background-color: var(--colorNeutralBackground2);
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 14px;
  color: var(--colorNeutralForeground2);
  display: inline-block;
}

/* Code block styling */
.message-content pre {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 16px 0;
}

.message.assistant .message-content pre {
  background-color: rgba(0, 0, 0, 0.1);
}

.message.user .message-content pre {
  background-color: rgba(255, 255, 255, 0.1);
}

.message-content code {
  font-family: var(--fontFamilyMonospace);
  font-size: 14px;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--colorNeutralForeground2);
  font-size: 14px;
}

/* Scroll to bottom button */
.scroll-button {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 1;
}

/* Input field */
.input-field {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: 8px;
  resize: none;
  font-family: var(--fontFamilyBase);
  font-size: var(--fontSizeBase300);
  line-height: 1.5;
  background-color: var(--colorNeutralBackground1);
  color: var(--colorNeutralForeground1);
  min-height: 44px;
  overflow-y: auto;
  max-height: 200px;
}

.input-field:focus {
  outline: none;
  border-color: var(--colorBrandStroke1);
}

.input-field::placeholder {
  color: var(--colorNeutralForeground3);
}

/* Send button */
.send-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--colorBrandBackground);
  color: var(--colorNeutralForegroundInverted);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.send-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.send-button:disabled {
  background-color: var(--colorNeutralBackground3);
  color: var(--colorNeutralForeground3);
  cursor: not-allowed;
}

/* Input footer */
.input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 0 16px;
  font-size: 12px;
  color: var(--colorNeutralForeground3);
}

/* Markdown content */
.markdown-content {
  width: 100%;
}

.markdown-content > *:first-child {
  margin-top: 0;
}

.markdown-content > *:last-child {
  margin-bottom: 0;
} 